package cn.zucc.edu.madq.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.zucc.edu.madq.dao.MMapper;
import cn.zucc.edu.madq.service.MService;


@Service("mService")
public class MServiceImpl implements MService {

	@Autowired
	private MMapper mMapper;

	@Override
	public List<Map<String, Object>> getMByUserId(int userId) {
		return mMapper.getMByUserId(userId);
	}

	@Override
	public List<Map<String, Object>> getMByUserIdAndClubId(int userId,
			int clubId) {
		return mMapper.getMByUserIdAndClubId(userId,clubId);
	}

	@Override
	public List<Map<String, Object>> getMNameByUserId(Integer userId) {
		return mMapper.getMNameByUserId(userId);
	}

}
